package com.lninl.repository;

import com.lninl.model.User;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.Collection;

/**
 * Repository class for <code>User</code> domain objects All method names are
 * compliant with Spring Data naming conventions so this interface can easily be
 * extended for Spring Data See here:
 * http://static.springsource.org/spring-data/
 * jpa/docs/current/reference/html/jpa
 * .repositories.html#jpa.query-methods.query-creation
 *
 * @author qinains
 */
public interface UserRepository extends PagingAndSortingRepository<User, Long> {
    Collection<User> findByStatus(Integer status);

    User findByUsername(String username);

    User findById(Long id);
}
